package com.oocl.im.outputstream;

import java.io.IOException;
import java.io.ObjectOutputStream;

public class NetOutput implements IOutputStream{
	ObjectOutputStream oos;
	
	public NetOutput(ObjectOutputStream oos) {
		super();
		this.oos = oos;
	}

	public ObjectOutputStream getOos() {
		return oos;
	}

	public void setOos(ObjectOutputStream oos) {
		this.oos = oos;
	}

	@Override
	public void write(Object o) {
		try {
			oos.writeObject(o);
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
	
	
}
